/*package wint.tools.ikanalyzer.solr;

import java.io.Reader;
import java.util.Map;

import org.apache.lucene.analysis.Tokenizer;
import org.apache.solr.analysis.BaseTokenizerFactory;
import wint.tools.ikanalyzer.lucene.IKTokenizer;

// 实现Solr1.4分词器接口
// 基于IKTokenizer的实现
// @author 林良益、李良杰
public final class IKTokenizerFactory extends BaseTokenizerFactory{
	
	private boolean isMaxWordLength = false;
	
	// IK分词器Solr TokenizerFactory接口实现类
	// 默认最细粒度切分算法
	public IKTokenizerFactory(){
	}
	
	
	public void init(Map<String,String> args){
		String _arg = args.get("isMaxWordLength");
		isMaxWordLength = Boolean.parseBoolean(_arg);
	}
	
	
	public Tokenizer create(Reader reader) {
		return new IKTokenizer(reader , isMaxWordLength());
	}

	public void setMaxWordLength(boolean isMaxWordLength) {
		this.isMaxWordLength = isMaxWordLength;
	}

	public boolean isMaxWordLength() {
		return isMaxWordLength;
	}

}
*/